#ifndef __INTRO_H__
#define __INTRO_H__

#include "SceneController.h"

using namespace cocos2d;
using namespace CocosDenshion;
using namespace cocos2d::extension;
using namespace rapidjson;

class IntroScene : public CCScene
{
public:
    virtual bool init();  

    CREATE_FUNC(IntroScene);
};

class IntroLayer : public CCLayer
{
public:
	CCSize winSize;
	bool bEndConnection;
	int connectionTime;
	CCLabelTTF* lblLoading;
	std::string userCode;
	CCEditBox* edtBox;

    virtual bool init();
	void update(float dt);
	void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	void createUserCodeCallBack(CCNode *sender, void *data);
	void accessUserCallBack(CCNode * sender, void *data);
	void doOk(CCObject* pSender);
   
    CREATE_FUNC(IntroLayer);
};

#endif // __INTRO_H__
